import React from 'react';
import { Router, Route, IndexRoute } from 'dva/router';
import HomePage from './routes/HomePage.js';
import PrecisionPage1 from './routes/PrecisionPage1';
import PrecisionPage50 from './routes/PrecisionPage50';
import PrecisionPage6 from './routes/PrecisionPage6';
import PrecisionPage7 from './routes/PrecisionPage7';
import PrecisionPage12 from './routes/PrecisionPage12';
import PrecisionPageList6 from './routes/PrecisionPageList6';
import PrecisionPage from './routes/PrecisionPage';
import PrecisionPage1Info from './routes/PrecisionPage1_info';
import PrecisionPage1Result from './routes/PrecisionPage1_result';
import LoginPage from './routes/LoginPage';
import CreateVipPage from './routes/CreateVipPage';
import Chart from './routes/AddInfo';
import Vips from './routes/VipsPage';
import VipsStat from './routes/VipsStatPage';
import PerformancePage from './routes/PerformancePage';
import MyPerformancePage from './routes/MyPerformancePage';
import TalkPage from './routes/TalkPage';
import ResetPasswordPage from './routes/ResetPasswordPage';
import VipHomePage from './routes/VipHomePage';
import VipInfoPage from './routes/VipInfoPage';
import VipLogPage from './routes/VipLogPage';
import VipDiscountPage from './routes/VipDiscountPage';
import RegSuccessPage from './routes/RegSuccessPage';
import IndexPage from './routes/IndexPage';
import MyTasksPage from './routes/MyTasksPage';
import MyTasksContentPage from './routes/MyTasksContentPage';
import MyTasksRank from './routes/MyTasksRank';
import Feedback from './routes/Feedback';
import Coming from './routes/Coming';
import Forbid from './routes/Forbid';
import vipCard from './third/vipCard';
import WheelSurf from './third/WheelSurf';
import WheelSurfIndex from './third/WheelSurfIndex';

import Entry from './utils/Entry';
import WechatEntry from './utils/WechatEntry';
import AuthWrap from './utils/authWrap';
import FindPWD from './routes/FindPWD';
import TrainsMainPage from './routes/TrainsMainPage';
import ExamMainPage from './routes/ExamMainPage';
import ExamPaperListPage from './routes/ExamPaperListPage';
import ExamStatistics from './routes/ExamStatistics';
import ExamReasult from './routes/ExamReasult';
import RegPage from './routes/RegPage';
import Association from './routes/Association';
import AssociationResult from './routes/AssociationResult';
import KnowledgeBase from './routes/KnowledgeBase';
import KnowledgeInfo from './routes/KnowledgeInfo';
import CouponPage from './routes/CouponPage';
import CouponUsePage from './routes/CouponUsePage';
import CouponHistoryPage from './routes/CouponHistoryPage';
import CouponCodePage from './routes/CouponCodePage';
import LabelEdit from './routes/LabelEdit';
import ShopWeeklyInfo from './routes/ShopWeeklyInfo';
import ShopsDistance from './routes/ShopsDistance';
import ShopsMap from './routes/ShopsMap';
import Help from './routes/Help';
import HelpContent from './routes/HelpContent';
import VersionRecord from './routes/VersionRecord';
import StatBonus from './routes/StatBonus';
import MyBonus from './routes/MyBonus';
import Bonus from './routes/Bonus';
import MyBonusVips from './routes/MyBonusVips';
import Appointment from './routes/Appointment';
import AppointmentResult from './routes/AppointmentResult';
import AppointmentSuccess from './routes/AppointmentSuccess';
import IMChatList from './routes/IMChatList';
import IMChatMessage from './routes/IMChatMessage';
import Entry2 from './utils/Entry2';
import ExamRecords from './routes/ExamRecordsPage';
import LoginPageZbw from "./routes/LoginPageZbw";
import WiFiHelper from './routes/WiFiHelper';
import WiFiPeopleList from "./routes/WifiPeopleList";
import WiFiHelperFu from "./routes/WiFiHelperFu";
import CustomizeTask from "./routes/PrecisionPage101";
import VipCode from './routes/vipcard/VipCode';
import VipInfo from './routes/vipcard/VipInfo';
import MultiTask from "./routes/MultiTask";
import VipInvite from './routes/VipInvite'


function RouterConfig({ history, app }) {
  return (
    <Router history={history}>
      <Route path="/third_vipCard" component={vipCard} />
      <Route path="/findpwd" component={FindPWD} />
      <Route path="/reg" component={RegPage} />
      <Route path="/login" component={LoginPage} />
      <Route path="/loginZbw" component={LoginPageZbw} title />
      <Route path="/shopsDistance" component={Entry2(ShopsDistance)} />
      <Route path="/shopsMap" component={ShopsMap} />
      <Route path="/appointment" component={Appointment} />
      <Route path="/appointmentResult" component={AppointmentResult} />
      <Route path="/AppointmentSuccess" component={AppointmentSuccess} />
      <Route path="/wheelsurf/index" component={WheelSurf} />
      <Route path="/wheelsurf" component={WheelSurfIndex} />

      <Route path="/wifihelper_fa" component={WiFiHelper} />
      <Route path="/wifihelper_fu" component={WiFiHelperFu}/>
      <Route path="/wifipeoplelist" component={WiFiPeopleList} />
      <Route path="/vipcode" component={VipCode} />
      <Route path="/vipinvite" component={VipInvite}/>
      <Route path="/vipcardinfo" component={VipInfo} />
      <Route
        path="/"
        component={WechatEntry}
      >
        <IndexRoute component={HomePage} title="123123" />
        <Route path="p" component={PrecisionPage} title="sdfsdf" />
        <Route path="/multiTask" component={MultiTask}/>
        <Route path="/p1" component={PrecisionPage1} />
        <Route path="/p6" component={PrecisionPage6} />
        <Route path="/p50" component={PrecisionPage50} />
        <Route path="/p7" component={PrecisionPage7} />
        <Route path="/p12" component={PrecisionPage12} />
        <Route path="/p6list" component={PrecisionPageList6} />
        <Route path="/p1_info" component={PrecisionPage1Info} />
        <Route path="/p1_result" component={PrecisionPage1Result} />
        <Route path="/addInfo" component={Chart} />
        <Route path="/vips" component={Vips} />
        <Route path="/vipStat" component={VipsStat} />
        <Route path="/performanceStat" component={PerformancePage} />
        <Route path="/myPerformanceStat" component={MyPerformancePage} />
        <Route path="/talk" component={TalkPage} />
        <Route path="/resetPassword" component={ResetPasswordPage} />
        <Route path="/vipHome" component={VipHomePage} />
        <Route path="/vipLog" component={VipLogPage} />
        <Route path="/vipInfo" component={VipInfoPage} />
        <Route path="/labelEdit" component={LabelEdit} />
        <Route path="/vipDiscount" component={VipDiscountPage} />
        <Route path="/regSuccess" component={RegSuccessPage} />
        <Route path="/myTasks" component={MyTasksPage} />
        <Route path="/myTasksContent" component={MyTasksContentPage} />
        <Route path="/myTasksRank" component={MyTasksRank} />
        <Route path="/nav" component={IndexPage} />
        <Route path="/feedBack" component={Feedback} />
        <Route path="/help" component={Help} />
        <Route path="/helpContent" component={HelpContent} />
        <Route path="/coming" component={Coming} />
        <Route path="/trainsMain" component={TrainsMainPage} />
        <Route path="/examMain" component={ExamMainPage} />
        <Route path="/examPaperList" component={ExamPaperListPage} />
        <Route path="/examStatistics" component={ExamStatistics} />
        <Route path="/examReasult" component={ExamReasult} />
        <Route path="/addVip" component={CreateVipPage} />
        <Route path="/association" component={Association} />
        <Route path="/associationResult" component={AssociationResult} />
        <Route path="/knowledgeBase" component={KnowledgeBase} />
        <Route path="/knowledgeInfo" component={KnowledgeInfo} />
        <Route path="/coupon" component={CouponPage} />
        <Route path="/couponUse" component={CouponUsePage} />
        <Route path="/couponHistory" component={CouponHistoryPage} />
        <Route path="/couponCode" component={CouponCodePage} />
        <Route path="/shopWeeklyInfo" component={ShopWeeklyInfo} />
        <Route path="/versionRecord" component={VersionRecord} />
        <Route path="/bonus" component={Bonus} />
        <Route path="/statBonus" component={StatBonus} />
        <Route path="/myBonus" component={MyBonus} />
        <Route path="/myBonusVips" component={MyBonusVips} />
        <Route path="/imChatList" component={IMChatList} />
        <Route path="/imChatMessage" component={IMChatMessage} />
        <Route path="/examRecords" component={ExamRecords} />
        <Route path="/p101" component={CustomizeTask} />
      </Route>

      <Route path="*" component={() => <div><h1 style={{ textAlign: 'center' }}>页面去哪了</h1></div>} />
    </Router>
  )
    ;
}

export default RouterConfig;
